package com.oneToMany.bothway.model;

import java.util.HashSet;
import java.util.Set;

public class Customer implements java.io.Serializable {

    private long id;
    private String name;
    private Set<Order> orders = new HashSet<>();

    public Customer() {

    }

    public Customer(String name, Set<Order> orders) {
        this.name = name;
        this.orders = orders;
    }
    public Customer(long id, String name, Set<Order> orders) {

        this.id = id;
        this.name = name;
        this.orders = orders;
    }
    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Set<Order> getOrders() {
        return orders;
    }
    public void setOrders(Set<Order> orders) {
        this.orders = orders;
    }
}


